import Cart from '../views/cart'
import Category from '../views/category'
import Details from '../views/details'
import Home from '../views/home'
import List from '../views/list'
import Login from '../views/login'
import Tabbar from '../components/common/Tabbar'

const routes = [
  {
    path: '/',
    redirect: '/home',
  },
  {
    path: '/home',
    components: {
      default: Home,
      footer: Tabbar,
    },
  },
  {
    path: '/cart',
    component: Cart,
  },
  {
    path: '/category',
    component: Category,
  },
  {
    path: '/details',
    component: Details,
  },
  {
    path: '/list',
    component: List,
  },
  {
    path: '/login',
    component: Login,
  },
]

export default routes
